package com.rescue.forum.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 系统设置信息
 * @TableName sys_setting
 */
public class SysSetting implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 编号
     */
    @NotBlank(message = "[编号]不能为空")
    @Size(max = 10, message = "编码长度不能超过10")
    @ApiModelProperty("编号")
    private String code;
    /**
     * 设置信息
     */
    @Size(max = 500, message = "编码长度不能超过500")
    @ApiModelProperty("设置信息")
    private String jsonContent;

}
